package ym.ecrm.core.domain.salesManagement;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import ym.ecrm.core.domain.base.BaseEntity;

/**
 * 订单明细
 * 
 * @author Princess
 * @version 1.0
 */
@Entity
@Table(name="t_orderDetail")
public class OrderDetail extends BaseEntity{

	/**
	 * 订单
	 */
	@ManyToOne
	private Order order;
	/**
	 * 产品
	 */
	@ManyToOne
	private Production production;
	/**
	 * 单价
	 */
	private float unitPrice;
	/**
	 * 单位
	 */
	private String  unit;
	/**
	 * 数量
	 */
	private int number;
	public Order getOrder() {
		return order;
	}
	public void setOrder(Order order) {
		this.order = order;
	}
	public Production getProduction() {
		return production;
	}
	public void setProduction(Production production) {
		this.production = production;
	}
	public float getUnitPrice() {
		return unitPrice;
	}
	public void setUnitPrice(float unitPrice) {
		this.unitPrice = unitPrice;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public int getNumber() {
		return number;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	
}
